#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;


class Date
{
public:
	Date(int year = 2024, int month = 8, int day = 31)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	Date(const Date& d)
	{
		cout << "Date(const Date& d)" << endl;
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}
	~Date()
	{
		cout << "~Date()" << endl;
	}
	void print()
	{
		cout << _year << "/" << _month << "/" << _day << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};

Date Fun1()
{
	Date d;
	return d;
}
int main()
{
	Fun1();
	return 0;
}